package com.example.dynamicschedule.service.impl;

import com.example.dynamicschedule.bean.CkOrderLoanOutsourcing;
import com.example.dynamicschedule.dao.CkOrderLoanOutsourcingMapper;
import com.example.dynamicschedule.service.CkOrderLoanOutsourcingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CkOrderLoanOutsourcingServiceImpl implements CkOrderLoanOutsourcingService {
    @Autowired
    private CkOrderLoanOutsourcingMapper ckOrderLoanOutsourcingMapper;
    @Override
    public void insertList(List<CkOrderLoanOutsourcing> ckOrderLoanOutsourcings) {
        ckOrderLoanOutsourcingMapper.insertList(ckOrderLoanOutsourcings);
    }

    @Override
    public List<CkOrderLoanOutsourcing> findByStatus(byte status) {
      return   ckOrderLoanOutsourcingMapper.findByStatus(status);

    }

    @Override
    public void updateForEach(List<CkOrderLoanOutsourcing> ckOrderLoanOutsourcings) {
        ckOrderLoanOutsourcingMapper.updateForEach(ckOrderLoanOutsourcings);
    }
}
